<?php
include_once("../../includes/config.inc.php");
check_login();
$suserSession=get_suser();
$customer_id=$suserSession['id'];
$BottomMenu = new Model_BottomMenu();
$mid = (int)$_POST['mid'];
$where = "customer_id=$customer_id and id=$mid or parent_id=$mid";
echo $BottomMenu->delete($where);


?>